package com.apanal.qlife.push.model;

/**
 * 推送透传(自定义)消息实体类
 * 
 * @author shuliangxing
 * @date 2015-6-11下午1:53:43
 */
public class PushMsg {
	/**
	 * 推送类型,1:广告 2:公告 3:报修 4:投诉 5:评论
	 */
	private int type;

	/**
	 * 推送内容
	 */
	private String text;

	/**
	 * 是否打开对应模块, 1:是 0:否
	 */
	private int isOpen;

	/**
	 * 是否响铃, 1:是 0:否
	 */
	private int isRing;

	/**
	 * 是否震动, 1:是 0:否
	 */
	private int isVibrate;

	/**
	 * 构造函数
	 * 
	 * @param type
	 *            推送类型,1:广告 2:公告 3:报修 4:投诉 5:评论
	 * @param text
	 *            推送内容
	 * @param isOpen
	 *            是否打开对应模块, 1:是 0:否
	 * @param isRing
	 *            是否响铃, 1:是 0:否
	 * @param isVibrate
	 *            是否震动, 1:是 0:否
	 */
	public PushMsg(int type, String text, int isOpen, int isRing, int isVibrate) {
		this.type = type;
		this.text = text;
		this.isOpen = isOpen;
		this.isRing = isRing;
		this.isVibrate = isVibrate;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public int getIsOpen() {
		return isOpen;
	}

	public void setIsOpen(int isOpen) {
		this.isOpen = isOpen;
	}

	public int getIsRing() {
		return isRing;
	}

	public void setIsRing(int isRing) {
		this.isRing = isRing;
	}

	public int getIsVibrate() {
		return isVibrate;
	}

	public void setIsVibrate(int isVibrate) {
		this.isVibrate = isVibrate;
	}

}
